package com.kbs.pay.management.controller;

import com.kbs.pay.common.response.BaseResponse;
import com.kbs.pay.management.constant.ResponseEnum;
import com.kbs.pay.management.util.ResponseUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lenki
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public BaseResponse test() {
        if (1 == 0) {
            return ResponseUtils.fail(ResponseEnum.UNKNOWN_ERROR);
        }
        return ResponseUtils.success();
    }
}
